/* 全局样式 */

/* 重置样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 滚动条样式 - 由主题系统控制 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track, #f1f1f1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #c0c4cc);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover, #909399);
}

/* 通用样式类 */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* 间距类 */
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 20px; }

.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-5 { margin-right: 20px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

/* 文本颜色 - 使用主题变量 */
.text-primary { color: var(--color-primary, #409eff); }
.text-success { color: var(--color-success, #67c23a); }
.text-warning { color: var(--color-warning, #e6a23c); }
.text-danger { color: var(--color-danger, #f56c6c); }
.text-info { color: var(--color-info, #909399); }

/* 文本大小 */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }

/* 卡片样式 - 使用主题变量 */
.card {
  background-color: var(--bg-card, #fff);
  border-radius: 4px;
  box-shadow: var(--shadow-sm, 0 2px 12px 0 rgba(0, 0, 0, 0.1));
  padding: 20px;
  color: var(--text-primary, #303133);
  border: 1px solid var(--border-color-light, #e4e7ed);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 页面容器 - 使用主题变量 */
.page-container {
  padding: 20px;
  height: 100%;
  background-color: var(--bg-secondary, #f0f2f5);
  color: var(--text-primary, #303133);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 表格工具栏 */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* 表单样式 */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

/* 状态标签颜色 */
.status-pending { background-color: #e6a23c; }
.status-in-progress { background-color: #409eff; }
.status-completed { background-color: #67c23a; }
.status-cancelled { background-color: #909399; }
.status-overdue { background-color: #f56c6c; }

/* 优先级标签颜色 */
.priority-low { background-color: #909399; }
.priority-medium { background-color: #e6a23c; }
.priority-high { background-color: #f56c6c; }
.priority-urgent { background-color: #f56c6c; border: 1px solid #f56c6c; }

/* 表格样式 */
.table-container {

/* 仪表盘样式 */
.dashboard-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-card-header {
  padding: 16px;
  border-bottom: 1px solid #ebeef5;
  font-weight: bold;
}

.dashboard-card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-container {
  width: 100%;
  height: 300px;
}